package com.wo.android.pockybill.adapter;

import java.util.List;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.wo.android.pockybill.R;
import com.wow.wa.bill.vo.Card;

public class CategoryAdapter extends BaseAdapter {

	private List<Card> cards = null;
	
	private Context context;

	public CategoryAdapter(List<Card> cards, Context ct) {
		this.cards = cards;
		this.context = ct;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return this.cards.size();
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return this.cards.get(position);
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		View view = LayoutInflater.from(this.context).inflate(
				R.layout.card_view, null);

		final TextView titleView = (TextView) view.findViewById(R.id.title);
		final TextView numView = (TextView) view.findViewById(R.id.num);

		// TODO Auto-generated method stub
		return null;
	}

}
